package wangxiaotao.converter;

import org.mapstruct.Mapper;
import wangxiaotao.bean.vo.PermissionSimpleVO;
import wangxiaotao.bean.vo.PermissionVO;
import wangxiaotao.entity.Permission;

import java.util.List;

@Mapper(componentModel = "spring")
public interface PermissionConverter {

    PermissionSimpleVO toPermissionVO(Permission permission);

    Permission toPermission(PermissionSimpleVO permissionVO);

    Permission toPermission(PermissionVO permissionVO);

    List<PermissionVO> toPermissionVOList(List<Permission> permissionList);
}
